import requests
from config import *
# 获得当前token
def get_token(code):
    url = MAIN_URL + 'api/v1/token/user'
    headers = HEADER
    data = {
        'code': code
    }
    r = requests.post(url, headers=headers, json=data)
    print(r.json())
    # return r["token"]
